//
// CallbackInterface.cpp for CallbackInterface in /home/mambou_j//babel-2014
// 
// Made by jacquesquentin mamboumouafo
// Login   <mambou_j@epitech.net>
// 
// Started on  Tue May 15 00:04:22 2012 jacquesquentin mamboumouafo
// Last update Tue May 15 00:14:29 2012 jacquesquentin mamboumouafo
//


#include	"CallbackInterface.hpp"

namespace	portaudio
{

	namespace	impl
	{
	  int	callbackInterfaceToCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
	  {
	    CallbackInterface *cb = static_cast<CallbackInterface *>(userData);
	    return cb->paCallbackFun(inputBuffer, outputBuffer, numFrames, timeInfo, statusFlags);
	  }
	}
}
